package model.cardData;

public class PlayerCardSet extends CardSet {

	public PlayerCardSet() {
		super(CardVisibility.ALL);
	}
	
	
	public boolean containsCard(Card x) {
		for(Card c : cards) {
			if(c.equals(x)) {
				return true;
			}
		}
		return false;
	}
	
	public Card discard(Card c) {
		if(containsCard(c)) {
			Card x = getCard(c);
			remove(x);
			return x;
		}
		return null; //TODO: Exception
	}
	
}
